import PyV8

class Document(PyV8.JSClass):
	def __init__(self):
		self.alinkColor   = ''
		self.all	      = ''
		self.anchors	  = ''
		self.applets	  = ''
		self.bgColor	  = ''
		self.compatMode   = ''
		self.cookie		  = None
		# self.document.documentMode # IE8 Only
		self.domain 	  = ''
		self.embeds		  = ''
		self.fgColor	  = ''
		self.fileSize	  = ''
		self.forms		  = ''
		self.images		  = ''
		self.lastModified = ''
		self.linkColor	  = ''
		self.links		  = ''
		self.plugins	  = ''
		self.readyState	  = '' # IE Property. Supported in Opera 8, Chrome and FF 3.6+
		self.referrer	  = ''
		self.title		  = ''
		self.URL		  = ''
		self.vlinkColor   = ''
	
	def close(self):
		print "\t\t--> Website attempted to close the window"
		
	def getElementById(self, id):
		pass
		
	def open(self, mime_type):
		print "\t\t--> Website attempted to open window"
		
	def write(self, str):
		print "\t\t--> Website attempted to write: " + str
		
	def writeln(self, str):
		print "\t\t--> Website attempted to write: " + str
